<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
	<meta name="format-detection" content="telephone=no" />
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="../c/aui.css" />
	<link rel="stylesheet" type="text/css" href="../c/suxiangw.css" />
</head>
<style>
#qianming{
	background: #1B1D29;
	padding: 0.35rem;
	font-size: 0.75rem;
	color: #fff;
	height: 8rem;
	letter-spacing:2px;
	border-radius: 0.25rem;
}
</style>

<body>
	<div class="aui-content aui-content-padded">
		<h2 class="aui-margin-b-15 aui-margin-t-15 aui-font-size-14">个人简介</h2>
		<textarea id="qianming"  maxlength="255"  placeholder="填写个人简介更容易获得别人关注哦"></textarea>
		<p class="aui-margin-t-15 aui-font-size-12 aui-text-right">最多255个字符</p>
		<div class="aui-btn sx-btn aui-btn-block aui-margin-t-15" Tapmode onclick="a()">保存</div>
	</div>
</body>
<script type="text/javascript" src="../j/api.js"></script>
<script type="text/javascript">
	apiready = function() {
		api.parseTapmode;
		setTimeout(function() {
			document.getElementById("qianming").focus()
		}, 500)
	}
	function a(){
		var text = $('#qianming').val();
		if(!text){
			return _msg('请填写个人简介');
		}
		_loading();
		document.activeElement.blur();
		_ajax('member/qianming',function(ret,err){
			if(ret){
				if(ret.ret){
					_alert(ret.ret,function(ret,err){
						_close();
					})
				}else{
					_alert(ret.err,function(ret,err){
						document.getElementById("qianming").focus()
					});
				}
			}else{
				_alert(JSON.stringify(err))
			}
			_loadingCloes();
		},{text:text})
	}
</script>

</html>
